package com.jy.books.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jy.common.annotation.Excel;
import com.jy.common.core.domain.BaseEntity;

/**
 * 图书信息对象 books
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
public class Books extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图书ID，主键，自增 */
    private Long id;

    /** 图书标题 */
    @Excel(name = "图书标题")
    private String title;

    /** 作者名称 */
    @Excel(name = "作者名称")
    private String author;

    /** 图书ISBN编号 */
    @Excel(name = "图书ISBN编号")
    private String isbn;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 出版年份 */
    @Excel(name = "出版年份")
    private String publishYear;

    /** 图书类别 */
    @Excel(name = "图书类别")
    private String category;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    public void setIsbn(String isbn) 
    {
        this.isbn = isbn;
    }

    public String getIsbn() 
    {
        return isbn;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setPublishYear(String publishYear) 
    {
        this.publishYear = publishYear;
    }

    public String getPublishYear() 
    {
        return publishYear;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("author", getAuthor())
            .append("isbn", getIsbn())
            .append("publisher", getPublisher())
            .append("publishYear", getPublishYear())
            .append("category", getCategory())
            .toString();
    }
}
